package com.hmall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.order.pojo.OrderDetail;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {


    /**
     * 新增订单详情表
     * @param orderDetail
     */
    @Insert("insert into tb_order_detail values(null,#{orderId},#{itemId},#{num},#{title}," +
            "#{spec},#{price},#{image},#{createTime},#{updateTime});")
    void insertDetail(OrderDetail orderDetail);
}
